package com.zx.erp.purchase.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.zx.erp.repo.bean.Warehouse;
import com.zx.erp.sys.bean.Users;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者信息
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CPurchase implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "purchase_id", type = IdType.ASSIGN_ID)
    private String purchaseId;

    @TableField("purchase_time")
    private Date purchaseTime;

    @TableField("total_money")
    private Double totalMoney;

    @TableField("creat_id")
    private Integer creatId;

    @TableField("check_status")
    private Integer checkStatus;

    @TableField("check_id")
    private Integer checkId;

    @TableField("check_time")
    private Date checkTime;

    @TableField("check_opinion")
    private String checkOpinion;

    @TableField("warehuose_id")
    private Integer warehuoseId;

    @TableField("cg_state")
    private Integer cgState;

    @TableField(exist = false)
    private Users createUser;
    //cDetails.productId
    // 自定义属性
    //操作人
    private Users creatUser;
    // 审核人
    private Users checkUser;
    // 仓库
    private Warehouse warehouse;
    // 采购单详情  可以是多个为了与前面相对应所以为一个
    private CDetails cDetails;


}
